#!/bin/sh

git checkout 4.2
sudo apt install -y build-essential cmake libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-timer-dev libboost-chrono-dev
cmake -Bb -DCMAKE_BUILD_TYPE:STRING=Release -DGTSAM_BUILD_EXAMPLES_ALWAYS:BOOL=OFF -DGTSAM_BUILD_EXAMPLES:BOOL=OFF -DGTSAM_BUILD_TESTS:BOOL=OFF .
cmake --build b -j$(nproc)
